﻿using Microsoft.AspNetCore.Mvc;
using WebMvc.Areas.Webmonitor.Models;
using WebMvc.Controllers;
using WebMvc.Models;

namespace WebMvc.Areas.Webmonitor.Controllers
{
    [Area("Webmonitor")]
    public class InfoOriginalController : BaseController<InfoOriginal>
    {
        public InfoOriginalController(EFDbContext context) : base(context)
        {
        }
        public override void SetOrderLambda()    //可以在子类中覆盖此方法，必须是实体中存在的(参考实体定义)，否则出错,例如Id，区分大小写
        {
            OrderLambda = o => o.Id;
        }
        public override void SetIsASC()  //可以在子类中覆盖此方法，设置isASC为false则按降序排
        {
            IsASC = false;
        }
    }
}